package com.hongye.common.constants;

/**
 * @author fyd
 * @email 2104371759@qq.com
 * @date 2022/4/13
 * @time 10:56
 */
public class Constant {

    /**
     * 公共提示消息
     */
    public static class CommonMsg{
        public final static String SUCCESS_MESSAGE="nice";
        public final static String ERROR_MESSAGE="error";
    }

    public static class UserExceptionMsg{
        public final static Integer PHONE_ERROR_CODE = 1001;
        public final static String PHONE_ERROR_MESSAGE = "手机号错误";
    }

    /**
     * 手机号获取验证码 --->Redis
     */
    public static class UserPhoneRedis{
        public final static String REDIS_PHONE="RedisPhone";
        public final static String REDIS_Code="RedisPhoneCode";
    }

    /**
     * 登录
     */
     public static  class Login{
         //手机号正则效验
         public final static String PHONE_REGULAR_SUCCESS="手机号验证成功";
         public final static String PHONE_REGULAR_FALSE="手机号不为空！！但是手机正则不通过！！";
         public final static String PHONE_REGULAR_NULL="手机号不为空";

         //通过手机号来查询用户
         public final static String FIND_USER_MSG_SUCCESS="用户信息查询成功";
         public final static String FIND_USER_MSG_FALSE="用户信息查询失败";

         //判断手机号是否是经纪人
         public final static String IF_USER_IS_BROKER_SUCCESS="用户是经济人";
         public final static String IF_USER_IS_BROKER_FALSE="您不是经济人";

         //手机号验证成功
         public final static String SEND_PHONE_CODE_SUCCESS="您正在登录宏烨经纪人平台，请妥善保管验证码";
         public final static String SEND_PHONE_CODE_FALSE="网络原因,获取突然，请稍后获取";
         public final static String SEND_PHONE_CODE_TIME_NOT="60秒之内请勿重新发送";
         public final static String SEND_PHONE_CODE_TIME_OK="可以进行去获取code";

         //手机号登录
         public final static String BROKER_LOGIN_WELCOME="欢迎";
         public final static String BROKER_LOGIN_SUCCESS="登录成功";
         public final static String BROKER_LOGIN_FALSE="验证码不对哦可以再想想";
         public final static String BROKER_LOGIN_NOT_PHONE="1分钟过期了,请获取code去";

         //普通登录
         public final static String LOGIN_WELCOME="登陆成功";
         public final static String LOGIN_SUCCESS="登录失败";

         //第三方 请求 页面  返回值
         public final static String THIRD_GETURL_SUCCESS="成功";
         public final static String THIRD_GETURL_FALSE="失败";

    }

    /**
     * 第三方登录
     */
    public static class ThirdLogin{
        //id
        public final static String CLIENTID="90034b3b12c83915927c303ea37ea28cf62cd1b19fb391296e4af5010a4cabb4";
        //密钥
        public final static  String CLIENTSECRET="b937bd9c0e7fea2316a1a3b1b58b6dc73d05fcdde7f1266ed221c6a32d0c5a25";
        // gitee 用户授权认证页面
        public  final static  String AUTHURL="https://gitee.com/oauth/authorize?";
        // gitee 授权之后重定向地址
        public  final static  String REDIRECTURI="http://localhost:8080/success";
        // gitee 获取 token 请求地址
        public final static  String TOKENURL="https://gitee.com/oauth/token";
    }


    /**
     * 上传图片
     */
    public static class OssMsg{
        public final static Boolean UPLOAD_ERROR = false;
        public final static Boolean UPLOAD_SUCCESS = true;
        public final static Integer UPLOAD_ERROR_CODE = 500;
        public final static Integer UPLOAD_SUCCESS_CODE = 200;
        public final static String UPLOAD_ERROR_MESSAGE = "图片上传失败";
        public final static String UPLOAD_SUCCESS_MESSAGE = "图片上传成功";
    }

    /**
     * 第三方微服务  工具类 发送短信
     */
    public static class Msg{
        public final static String HOST = "https://fesms.market.alicloudapi.com";
        public final static String PATH="/sms/";
        public final static String APPCODE="c4c9120d243e4af9829d75138e4e5b01";
    }






















}
